package com.mjlf.hometeach.common.entity.address;

import com.mjlf.hometeach.common.entity.DataTemplate;

/**
 * @auther a123
 * @create 2018-05-03 22:51
 * @desc 地区表，数据来源https://github.com/eduosi/district/blob/master/district-full.sql
 */
public class District extends DataTemplate {

    private String cnName;  //地区中文名称
    private Integer parentId;   //地区上级id，如果没有上级， 该值为0
    private String initial;     //地区拼音首字母
    private String initials;    //地去拼音首字母简写
    private String  pinyin;     //地区拼音
    private String extra;       //特色名族
    private String suffix;      //后缀，省、市、县、自治县、自治区等
    private String code;        //邮编
    private String areaCode;     //区号 010
    private Integer level;       //级别

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getInitial() {
        return initial;
    }

    public void setInitial(String initial) {
        this.initial = initial;
    }

    public String getInitials() {
        return initials;
    }

    public void setInitials(String initials) {
        this.initials = initials;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Distric{" +
                "cnName='" + cnName + '\'' +
                ", parentId=" + parentId +
                ", initial='" + initial + '\'' +
                ", initials='" + initials + '\'' +
                ", pinyin='" + pinyin + '\'' +
                ", extra='" + extra + '\'' +
                ", suffix='" + suffix + '\'' +
                ", code='" + code + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", level=" + level +
                ", id=" + id +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
